<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="p" %>
<%String ctx = request.getContextPath(); %>

<jsp:include page="../common/operate.jsp">
	<jsp:param name="title1" value="用户类型"/>
	<jsp:param name="title2" value=""/>
	<jsp:param name="isShowAddBtn" value="true"/>
	<jsp:param name="isShowUpdateBtn" value="true"/>
	<jsp:param name="isShowDeleteBtn" value="true"/>
</jsp:include>

<div style="width:100%" class="f_l margin1">
	<s:form id="listForm" method="POST" theme="simple">
	    <table width="98%" cellspacing="0" cellpadding="0" border="0" class="clear f_l padding3" id="tb">
	      <tbody>
		      <tr class="bg4_nav">
		      	<td width="3%" style="border:0">
		        	<input onclick="javascript:batchSelect(this)" type="checkbox" style="border:0" name="List_Selected2">
		        </td>
		        <td width="6%" class="t_c" style="border:0">序号</td>
		        <td class="t_c" style="border:0">名称</td>
		      </tr>
		      <s:iterator value="pager.result" status="status">
			      <tr align="center" onmouseover="this.bgColor='#F2E6E6'" onmouseout="this.bgColor=''">
			        <td class="border_tb"><input type="checkbox" style="border:0" name="ids" value="${id }"></td>
			        <td class="border_tb">
			          ${status.index+1 }
			        </td>
			        <td class="border_tb">
			          <s:property value="name"/>
			        </td>
			      </tr>
		      </s:iterator>
	      </tbody>
	    </table>
    </s:form>
    <div class="f_l margin1"><img src="<%=ctx%>/img/business/main_07.jpg"></div>
</div>
<div style="width: 90%;margin-top: 20px;">
  <p:page pager="${pager}" url="usertype!list.action" namespace="/usertype"/>
</div>
<script type="text/javascript">
$(window).ready(function(){
	addOperate('addButton','<%=ctx%>/usertype/usertype!add');
	updateOperate('updateButton','<%=ctx%>/usertype/usertype!edit');
	batchDelete('deleteButton','listForm','<%=ctx%>/usertype/usertype!deleteAll');
	isAllSelected('listForm');	
});
</script>